package com.knowif.enumInfo;

import java.util.HashMap;
import java.util.Map;

public enum LanguageTypeEnum {
	
	TOEFL(1,"托福"),
	GMAT(2,"GMAT"),
	IELTS(3,"雅思"),
	GRE(4,"GRE");
	private int typeId;
	private String typeName;
	private LanguageTypeEnum(int typeId, String typeName) {
		this.typeId = typeId;
		this.typeName = typeName;
	}
	public int getTypeId() {
		return typeId;
	}
	public void setTypeId(int typeId) {
		this.typeId = typeId;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public static Map<Integer,String> getLanguageTypes(){
		Map<Integer,String> languageType = new HashMap<Integer,String>();
		for(LanguageTypeEnum languageTypeEnum : LanguageTypeEnum.values()){
			languageType.put(languageTypeEnum.getTypeId(), languageTypeEnum.getTypeName());
		}
		return languageType;
	}
}
